package com.xwd.bean;

public class Message {

    //返回格式为 {status:0,result:"",date:{}}
    //与前端沟通好消息格式，一般是有个大标准

    //状态码
    private int status;
    //消息内容
    private String result;
    //消息所携带的数据
    private Object date;

    @Override
    public String toString() {
        return "Message{" +
                "status=" + status +
                ", result='" + result + '\'' +
                ", date=" + date +
                '}';
    }

    public Message(int status, String result) {
        this.status = status;
        this.result = result;
    }

    public Message(String result) {
        this.result = result;
    }

    public Message(int status) {
        this.status = status;
    }

    public Message(int status, String result, Object date) {
        this.status = status;
        this.result = result;
        this.date = date;
    }

    public Message() {
    }
}
